package previewer

type PreviewerConfigCommand struct {
	Name string `json:"name"`
	Args string `json:"args"`
}

type PreviewerConfigScreen struct {
	Width  int    `json:"width"`
	Height int    `json:"height"`
	Shape  string `json:"shape"`
}

type PreviewerConfigDevice struct {
	DeviceType string                   `json:"deviceType"`
	Vendor     string                   `json:"vendor"`
	JsHeapInK  int                      `json:"JSHeapinK"`
	Commands   []PreviewerConfigCommand `json:"commands"`
	Screen     PreviewerConfigScreen    `json:"Screen"`
}

type PreviewerConfig struct {
	Devices []PreviewerConfigDevice `json:"devices"`
}

type PreviewerCMessage struct {
	Name    string            `json:"name"`
	Command string            `json:"command"`
	Args    map[string]string `json:"args"`
}
